package com.it.schoolbookshop_back.entities.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交易订单项实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TransactionItem implements Serializable {
    /**
     * 订单项ID
     */
    private Long id;
    
    /**
     * 订单ID
     */
    private Long transactionId;
    
    /**
     * 书籍ID
     */
    private Integer bookId;
    
    /**
     * 卖家ID
     */
    private Integer sellerId;
    
    /**
     * 单价
     */
    private BigDecimal price;
    
    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
    
    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;
} 